#!/bin/sh

path="/Users/peterlee/Library/Preferences/SmartGit/17.1"
echo $path
cd $path
pwd
for file in $path/*;
do
tempfile=${file##*/}
if [ $tempfile == "settings.xml" ];
then
    echo $file
    sudo rm -rf $tempfile
    echo "hahha delete $tempfile finish!"
    break
fi
done
open $path

